package com.atguigu.flink.demo04;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author admin
 * @date 2021/8/10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class UserBean {

    private int id;
    private String name;
    private int age;
    private String sex;


    public UserBean(String[] values) {
        this.id = Integer.parseInt(values[0]);
        this.name = values[1];
        this.age = Integer.parseInt(values[2]);
        this.sex = values[3];
    }


}
